#include <QtGui/QApplication>

#include "controller/Context.h"
#include <QTextCodec>
#include "view/SelectDbfDialog.h"

int main(int argc, char *argv[])
{

    QApplication a(argc, argv);

    // Codecs
    QTextCodec *codec = QTextCodec::codecForName("Windows-1251");
    QTextCodec::setCodecForTr(codec);

    SelectDbfDialog selectDbfDialog;

    if (selectDbfDialog.exec() == QDialog::Accepted)
    {
        Context context;

        return a.exec();
    }

    return 0;
}
